<ul class="nav navbar-nav navbar-right">
    {% for i in men_list["head_list"] %}
    {% if men_list["head_men"][i][2] %}
    <li class="{{men_list['head_men'][i][3]}}">
        <a href="{{men_list['head_men'][i][1]}}">{{men_list['head_men'][i][0]}}</a>
        <!--<a href="{{men_list['head_men'][i][1]}}" data-toggle="dropdown">{{men_list['head_men'][i][0]}}</a>-->
        <!--<ul class="dropdown-menu">-->
        <!--{% for n in men_list["total"][i] %}-->
        <!--{% if n[2] %}-->
        <!--<li class="{{n[3]}}"><a href="{{n[1]}}">{{n[0]}}</a></li>-->
        <!--{% end %}-->
        <!--{% end %}-->
        <!--</ul>-->
    </li>
    {% end %}
    {% end %}

    <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
           aria-expanded="false">
            {% if username %}
            <font color="green">{{username}}</font>
            {% end %}
            <span class="caret"></span></a>
        <ul class="dropdown-menu">
            <li><a href="#">修改资料</a></li>
            <li><a href="#">修改密码</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="/logout">退出</a></li>
        </ul>
    </li>
</ul>
